package com.sfh.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * 功能描述:红颜
 *
 * @date 2017/9/3
 */
public class BeautyJson implements Parcelable {
    String code;//编号
    String name;//名字
    String head;//头像
    String wife;//背景
    String role;//生活照片
    String role_1;// 私密照片

    long charm;//魅力
    long power;// 能力
    String desc;//介绍



    List<BeautySkill> skill;
    public BeautyJson(){}
    protected BeautyJson(Parcel in) {

        code = in.readString ();
        name = in.readString ();
        head = in.readString ();
        wife = in.readString ();
        role = in.readString ();
        role_1 = in.readString ();
        charm = in.readLong ();
        power = in.readLong ();
        desc = in.readString ();
    }

    public static final Creator<BeautyJson> CREATOR = new Creator<BeautyJson> () {

        @Override
        public BeautyJson createFromParcel(Parcel in) {

            return new BeautyJson (in);
        }

        @Override
        public BeautyJson[] newArray(int size) {

            return new BeautyJson[size];
        }
    };

    public String getCode() {

        return code;
    }

    public void setCode(String code) {

        this.code = code;
    }

    public String getName() {

        return name;
    }

    public void setName(String name) {

        this.name = name;
    }

    public String getHead() {

        return head;
    }

    public void setHead(String head) {

        this.head = head;
    }

    public String getWife() {

        return wife;
    }

    public void setWife(String wife) {

        this.wife = wife;
    }

    public String getRole() {

        return role;
    }

    public void setRole(String role) {

        this.role = role;
    }

    public String getRole_1() {

        return role_1;
    }

    public void setRole_1(String role_1) {

        this.role_1 = role_1;
    }

    public long getCharm() {

        return charm;
    }

    public void setCharm(long charm) {

        this.charm = charm;
    }

    public long getPower() {

        return power;
    }

    public void setPower(long power) {

        this.power = power;
    }

    public String getDesc() {

        return desc;
    }

    public void setDesc(String desc) {

        this.desc = desc;
    }

    public List<BeautySkill> getSkill() {

        return skill;
    }

    public void setSkill(List<BeautySkill> skill) {

        this.skill = skill;
    }

    @Override
    public int describeContents() {

        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {

        dest.writeString (code);
        dest.writeString (name);
        dest.writeString (head);
        dest.writeString (wife);
        dest.writeString (role);
        dest.writeString (role_1);
        dest.writeLong (charm);
        dest.writeLong (power);
        dest.writeString (desc);
    }
}
